(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ 'use strict';var q;function ca(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); t("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c=e}}); t("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,f=0;f=f}}); t("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}}); t("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}}); t("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); t("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}}); function Na(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&cc&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);cc&&(c=Math.max(c+e,0));c>>0),Ua=0;function Va(a,b,c){return a.call.apply(a.bind,arguments)} function Ya(a,b,c){if(!a)throw Error();if(2/g,Bb=/"/g,Cb=/'/g,Db=/\x00/g,Eb=/[\x00&<>"']/;function Fb(a,b){this.h=b===Gb?a:""} Fb.prototype.toString=function(){return this.h.toString()}; var Gb={},Hb=new Fb("about:invalid#zClosurez",Gb);function Nb(){var a=z.navigator;return a&&(a=a.userAgent)?a:""} function F(a){return-1!=Nb().indexOf(a)} ;function Ob(){return(F("Chrome")||F("CriOS"))&&!F("Edge")||F("Silk")} ;var Pb={};function Qb(a){this.h=Pb===Pb?a:""} Qb.prototype.toString=function(){return this.h.toString()};var Rb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Sb(a){return a?decodeURI(a):a} function Tb(a){return Sb(a.match(Rb)[3]||null)} function Ub(a){var b=a.match(Rb);a=b[1];var c=b[2],d=b[3];b=b[4];var e="";a&&(e+=a+":");d&&(e+="//",c&&(e+=c+"@"),e+=d,b&&(e+=":"+b));return e} function Vb(a,b,c){if(Array.isArray(b))for(var d=0;dd)return null;e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.slice(d,-1!==e?e:0).replace(/\+/g," "))} ;function Zb(a){z.setTimeout(function(){throw a;},0)} ;function $b(){return F("iPhone")&&!F("iPod")&&!F("iPad")} ;function ac(a){ac[" "](a);return a} ac[" "]=function(){};var bc=F("Opera"),cc=F("Trident")||F("MSIE"),dc=F("Edge"),ec=F("Gecko")&&!(-1!=Nb().toLowerCase().indexOf("webkit")&&!F("Edge"))&&!(F("Trident")||F("MSIE"))&&!F("Edge"),fc=-1!=Nb().toLowerCase().indexOf("webkit")&&!F("Edge");function gc(){var a=z.document;return a?a.documentMode:void 0} var hc;a:{var ic="",jc=function(){var a=Nb();if(ec)return/rv:([^\);]+)(\)|;)/.exec(a);if(dc)return/Edge\/([\d\.]+)/.exec(a);if(cc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(fc)return/WebKit\/(\S+)/.exec(a);if(bc)return/(?:Version)[ \/]?(\S+)/.exec(a)}(); jc&&(ic=jc?jc[1]:"");if(cc){var kc=gc();if(null!=kc&&kc>parseFloat(ic)){hc=String(kc);break a}}hc=ic}var pc=hc,qc;if(z.document&&cc){var rc=gc();qc=rc?rc:parseInt(pc,10)||void 0}else qc=void 0;var sc=qc;var tc=$b()||F("iPod"),uc=F("iPad");!F("Android")||Ob();Ob();var vc=F("Safari")&&!(Ob()||F("Coast")||F("Opera")||F("Edge")||F("Edg/")||F("OPR")||F("Firefox")||F("FxiOS")||F("Silk")||F("Android"))&&!($b()||F("iPad")||F("iPod"));var wc={},xc=null;function yc(a,b){Qa(a);void 0===b&&(b=0);zc();b=wc[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e>2];g=b[(g&3)<<4|h>>4];h=b[(h&15)<<2|k>>6];k=b[k&63];c[f++]=""+l+g+h+k}l=0;k=d;switch(a.length-e){case 2:l=a[e+1],k=b[(l&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|l>>4]+k+d}return c.join("")} function Ac(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):-1!="=.".indexOf(a[b-1])&&(c=-1!="=.".indexOf(a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Bc(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d} function Bc(a,b){function c(k){for(;d>4);64!=g&&(b(f<<4&240|g>>2),64!=h&&b(g<<6&192|h))}} function zc(){if(!xc){xc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));wc[c]=d;for(var e=0;e=a.h?a.ha?a.ha[b]:void 0:c&&a.ha&&(c=a.ha[b],null!=c)?c:a.J[b+a.Ia]} function H(a,b,c,d){Zc(a);return ed(a,b,c,d)} function ed(a,b,c,d){a.i&&(a.i=void 0);if(b>=a.h||d)return cd(a)[b]=c,a;a.J[b+a.Ia]=c;(c=a.ha)&&b in c&&delete c[b];return a} function fd(a,b){a&&Qc(b.J)&&Qc(a.J);return a} function gd(a,b,c,d){var e=dd(a,b,d);Array.isArray(e)||(e=Xc);var f=G(e);f&1||Pc(e);var g=!(c&2),h=f&2;c&1||!h?g&&f&16&&!h&&Nc(e,16):(e=Pc(Array.prototype.slice.call(e)),ed(a,b,e,d));return e} function hd(a,b,c,d){Zc(a);(c=id(a,c))&&c!==b&&null!=d&&ed(a,c,void 0,!1);ed(a,b,d)} function id(a,b){for(var c=0,d=0;dp;p+=4)r[p/4]=n[p]<<24|n[p+1]<<16|n[p+2]<<8|n[p+3];for(p=16;80>p;p++)n=r[p-3]^r[p-8]^r[p-14]^r[p-16],r[p]=(n<<1|n>>>31)&4294967295;n=e[0];var w=e[1],A=e[2],I=e[3],M=e[4];for(p=0;80>p;p++){if(40>p)if(20>p){var S=I^w&(A^I);var O=1518500249}else S=w^A^I,O=1859775393;else 60>p?(S=w&A|I&(w|A),O=2400959708):(S=w^A^I,O=3395469782);S=((n<<5|n>>>27)&4294967295)+S+M+O+r[p]&4294967295;M=I;I=A;A=(w<<30|w>>>2)&4294967295;w=n;n=S}e[0]=e[0]+n&4294967295;e[1]=e[1]+w&4294967295;e[2]= e[2]+A&4294967295;e[3]=e[3]+I&4294967295;e[4]=e[4]+M&4294967295} function c(n,r){if("string"===typeof n){n=unescape(encodeURIComponent(n));for(var p=[],w=0,A=n.length;wl?c(h,56-l):c(h,64-(l-56));for(var p=63;56<=p;p--)f[p]=r&255,r>>>=8;b(f);for(p=r=0;5>p;p++)for(var w=24;0<=w;w-=8)n[r++]=e[p]>>w&255;return n} for(var e=[],f=[],g=[],h=[128],k=1;64>k;++k)h[k]=0;var l,m;a();return{reset:a,update:c,digest:d,Nc:function(){for(var n=d(),r="",p=0;ph?"":0==h?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*h)).toUTCString();this.h.cookie=a+"="+b+c+g+h+d+(null!=e?";samesite="+ e:"")}; q.get=function(a,b){for(var c=a+"=",d=(this.h.cookie||"").split(";"),e=0,f;ee?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}a=new Uint8Array(b.length);for(c=0;c>>0);function Ke(a){if("function"===typeof a)return a;a[Se]||(a[Se]=function(b){return a.handleEvent(b)}); return a[Se]} ;function Te(){re.call(this);this.h=new Ce(this);this.Ga=this;this.N=null} D(Te,re);Te.prototype[ye]=!0;Te.prototype.addEventListener=function(a,b,c,d){Ie(this,a,b,c,d)}; Te.prototype.removeEventListener=function(a,b,c,d){Qe(this,a,b,c,d)}; function Ue(a,b){var c=a.N;if(c){var d=[];for(var e=1;c;c=c.N)d.push(c),++e}a=a.Ga;c=b.type||b;"string"===typeof b?b=new se(b,a):b instanceof se?b.target=b.target||a:(e=b,b=new se(c,a),sb(b,e));e=!0;if(d)for(var f=d.length-1;!b.j&&0<=f;f--){var g=b.h=d[f];e=Ve(g,c,!0,b)&&e}b.j||(g=b.h=a,e=Ve(g,c,!0,b)&&e,b.j||(e=Ve(g,c,!1,b)&&e));if(d)for(f=0;!b.j&&fa&&Number.isInteger(a)&&this.data_[a]!==b&&(this.data_[a]=b,this.h=-1)}; af.prototype.get=function(a){return!!this.data_[a]}; function bf(a){-1===a.h&&(a.h=gb(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0)); return a.h} ;function cf(a){K.call(this,a)} v(cf,K);function df(a){K.call(this,a,-1,ef)} v(df,K);function ff(a,b){return H(a,2,b)} function gf(a,b){return H(a,3,b)} function hf(a,b){return H(a,4,b)} function jf(a,b){return H(a,5,b)} function kf(a,b){return H(a,9,b)} function lf(a,b){return pd(a,cf,10,b)} function mf(a,b){return H(a,11,b)} function nf(a,b){return H(a,1,b)} function of(a,b){return H(a,7,b)} var ef=[10,6];var pf="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");function qf(a){var b;return null!=(b=a.google_tag_data)?b:a.google_tag_data={}} function rf(a){var b,c;return"function"===typeof(null==(b=a.navigator)?void 0:null==(c=b.userAgentData)?void 0:c.getHighEntropyValues)} function sf(){var a=window;if(!rf(a))return null;var b=qf(a);if(b.uach_promise)return b.uach_promise;a=a.navigator.userAgentData.getHighEntropyValues(pf).then(function(c){null!=b.uach||(b.uach=c);return c}); return b.uach_promise=a} function tf(a){var b;return mf(lf(jf(ff(nf(hf(of(kf(gf(new df,a.architecture||""),a.bitness||""),a.mobile||!1),a.model||""),a.platform||""),a.platformVersion||""),a.uaFullVersion||""),(null==(b=a.fullVersionList)?void 0:b.map(function(c){var d=new cf;d=H(d,1,c.brand);return H(d,2,c.version)}))||[]),a.wow64||!1)} function uf(){var a,b;return null!=(b=null==(a=sf())?void 0:a.then(function(c){return tf(c)}))?b:null} ;function vf(a,b){this.j=a;this.m=b;this.i=0;this.h=null} vf.prototype.get=function(){if(0a.i&&(a.i++,b.next=a.h,a.h=b)} ;var xf;function yf(){var a=z.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!F("Presto")&&(a=function(){var e=Jd();e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),h="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=Za(function(k){if(("*"==h||k.origin==h)&&k.data==g)this.port1.onmessage()},this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,h)}}}); if("undefined"!==typeof a&&!F("Trident")&&!F("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.cc;c.cc=null;e()}}; return function(e){d.next={cc:e};d=d.next;b.port2.postMessage(0)}}return function(e){z.setTimeout(e,0)}} ;function zf(){this.i=this.h=null} zf.prototype.add=function(a,b){var c=Af.get();c.set(a,b);this.i?this.i.next=c:this.h=c;this.i=c}; zf.prototype.remove=function(){var a=null;this.h&&(a=this.h,this.h=this.h.next,this.h||(this.i=null),a.next=null);return a}; var Af=new vf(function(){return new Bf},function(a){return a.reset()}); function Bf(){this.next=this.scope=this.h=null} Bf.prototype.set=function(a,b){this.h=a;this.scope=b;this.next=null}; Bf.prototype.reset=function(){this.next=this.scope=this.h=null};var Cf,Df=!1,Ef=new zf;function Ff(a,b){Cf||Gf();Df||(Cf(),Df=!0);Ef.add(a,b)} function Gf(){if(z.Promise&&z.Promise.resolve){var a=z.Promise.resolve(void 0);Cf=function(){a.then(Hf)}}else Cf=function(){var b=Hf; "function"!==typeof z.setImmediate||z.Window&&z.Window.prototype&&!F("Edge")&&z.Window.prototype.setImmediate==z.setImmediate?(xf||(xf=yf()),xf(b)):z.setImmediate(b)}} function Hf(){for(var a;a=Ef.remove();){try{a.h.call(a.scope)}catch(b){Zb(b)}wf(Af,a)}Df=!1} ;function If(a,b){this.h=a[z.Symbol.iterator]();this.i=b} If.prototype[Symbol.iterator]=function(){return this}; If.prototype.next=function(){var a=this.h.next();return{value:a.done?void 0:this.i.call(void 0,a.value),done:a.done}}; function Jf(a,b){return new If(a,b)} ;function Kf(){this.blockSize=-1} ;function Lf(){this.blockSize=-1;this.blockSize=64;this.h=[];this.v=[];this.s=[];this.j=[];this.j[0]=128;for(var a=1;ae;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.h[0];c=a.h[1];var g=a.h[2],h=a.h[3],k=a.h[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=h^c&(g^h);var l=1518500249}else f=c^g^h,l=1859775393;else 60>e?(f=c&g|h&(c|g),l=2400959708): (f=c^g^h,l=3395469782);f=(b<<5|b>>>27)+f+k+l+d[e]&4294967295;k=h;h=g;g=(c<<30|c>>>2)&4294967295;c=b;b=f}a.h[0]=a.h[0]+b&4294967295;a.h[1]=a.h[1]+c&4294967295;a.h[2]=a.h[2]+g&4294967295;a.h[3]=a.h[3]+h&4294967295;a.h[4]=a.h[4]+k&4294967295} Lf.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.v,f=this.i;dthis.i?this.update(this.j,56-this.i):this.update(this.j,this.blockSize-(this.i-56));for(var c=this.blockSize-1;56<=c;c--)this.v[c]=b&255,b/=256;Mf(this,this.v);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.h[c]>>d&255,++b;return a};function Nf(){} Nf.prototype.next=function(){return Of}; var Of={done:!0,value:void 0};function Pf(a){return{value:a,done:!1}} Nf.prototype.ja=function(){return this};function Qf(a){if(a instanceof Rf||a instanceof Sf||a instanceof Tf)return a;if("function"==typeof a.next)return new Rf(function(){return a}); if("function"==typeof a[Symbol.iterator])return new Rf(function(){return a[Symbol.iterator]()}); if("function"==typeof a.ja)return new Rf(function(){return a.ja()}); throw Error("Not an iterator or iterable.");} function Rf(a){this.i=a} Rf.prototype.ja=function(){return new Sf(this.i())}; Rf.prototype[Symbol.iterator]=function(){return new Tf(this.i())}; Rf.prototype.h=function(){return new Tf(this.i())}; function Sf(a){this.i=a} v(Sf,Nf);Sf.prototype.next=function(){return this.i.next()}; Sf.prototype[Symbol.iterator]=function(){return new Tf(this.i)}; Sf.prototype.h=function(){return new Tf(this.i)}; function Tf(a){Rf.call(this,function(){return a}); this.j=a} v(Tf,Rf);Tf.prototype.next=function(){return this.j.next()};function Uf(a,b){this.i={};this.h=[];this.j=this.size=0;var c=arguments.length;if(12*this.size&&Wf(this),!0):!1}; function Wf(a){if(a.size!=a.h.length){for(var b=0,c=0;b=d.h.length)return Of;var f=d.h[b++];return Pf(a?f:d.i[f])}; return e}; function Xf(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;var Zf=z.JSON.stringify;function $f(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})} ;function ag(a){this.h=0;this.H=void 0;this.m=this.i=this.j=null;this.v=this.s=!1;if(a!=cb)try{var b=this;a.call(void 0,function(c){bg(b,2,c)},function(c){bg(b,3,c)})}catch(c){bg(this,3,c)}} function cg(){this.next=this.context=this.i=this.j=this.h=null;this.m=!1} cg.prototype.reset=function(){this.context=this.i=this.j=this.h=null;this.m=!1}; var dg=new vf(function(){return new cg},function(a){a.reset()}); function eg(a,b,c){var d=dg.get();d.j=a;d.i=b;d.context=c;return d} ag.prototype.then=function(a,b,c){return fg(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)}; ag.prototype.$goog_Thenable=!0;ag.prototype.cancel=function(a){if(0==this.h){var b=new gg(a);Ff(function(){hg(this,b)},this)}}; function hg(a,b){if(0==a.h)if(a.j){var c=a.j;if(c.i){for(var d=0,e=null,f=null,g=c.i;g&&(g.m||(d++,g.h==a&&(e=g),!(e&&1Date.now())xg.prototype.remove.call(this,a);else return b}};function yg(){} ;function zg(){} D(zg,yg);zg.prototype[Symbol.iterator]=function(){return Qf(this.ja(!0)).h()}; zg.prototype.clear=function(){var a=Array.from(this);a=u(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};function Ag(a){this.h=a} D(Ag,zg);q=Ag.prototype;q.set=function(a,b){try{this.h.setItem(a,b)}catch(c){if(0==this.h.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; q.get=function(a){a=this.h.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; q.remove=function(a){this.h.removeItem(a)}; q.ja=function(a){var b=0,c=this.h,d=new Nf;d.next=function(){if(b>=c.length)return Of;var e=c.key(b++);if(a)return Pf(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return Pf(e)}; return d}; q.clear=function(){this.h.clear()}; q.key=function(a){return this.h.key(a)};function Bg(){var a=null;try{a=window.localStorage||null}catch(b){}this.h=a} D(Bg,Ag);function Cg(a,b){this.i=a;this.h=null;var c;if(c=cc)c=!(9<=Number(sc));if(c){Dg||(Dg=new Uf);this.h=Dg.get(a);this.h||(b?this.h=document.getElementById(b):(this.h=document.createElement("userdata"),this.h.addBehavior("#default#userData"),document.body.appendChild(this.h)),Dg.set(a,this.h));try{this.h.load(this.i)}catch(d){this.h=null}}} D(Cg,zg);var Eg={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Dg=null;function Fg(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Eg[b]})} q=Cg.prototype;q.set=function(a,b){this.h.setAttribute(Fg(a),b);Gg(this)}; q.get=function(a){a=this.h.getAttribute(Fg(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; q.remove=function(a){this.h.removeAttribute(Fg(a));Gg(this)}; q.ja=function(a){var b=0,c=this.h.XMLDocument.documentElement.attributes,d=new Nf;d.next=function(){if(b>=c.length)return Of;var e=c[b++];if(a)return Pf(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return Pf(e)}; return d}; q.clear=function(){for(var a=this.h.XMLDocument.documentElement,b=a.attributes.length;0jh;jh++)ih[jh]=252<=jh?6:248<=jh?5:240<=jh?4:224<=jh?3:192<=jh?2:1;ih[254]=ih[254]=1; function kh(a){var b,c,d=a.length,e=0;for(b=0;bf?1:2048>f?2:65536>f?3:4}var h=new N.Ha(e);for(b=c=0;cf?h[c++]=f:(2048>f?h[c++]=192|f>>>6:(65536>f?h[c++]=224|f>>>12:(h[c++]=240|f>>>18,h[c++]=128|f>>>12&63),h[c++]=128|f>>> 6&63),h[c++]=128|f&63);return h} ;var lh={};lh=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;0!==c;){f=2E3ph;ph++){nh=ph;for(var qh=0;8>qh;qh++)nh=nh&1?3988292384^nh>>>1:nh>>>1;oh[ph]=nh}mh=function(a,b,c,d){c=d+c;for(a^=-1;d>>8^oh[(a^b[d])&255];return a^-1};var rh={};rh={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function sh(a){for(var b=a.length;0<=--b;)a[b]=0} var th=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],uh=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],vh=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],wh=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],xh=Array(576);sh(xh);var yh=Array(60);sh(yh);var zh=Array(512);sh(zh);var Ah=Array(256);sh(Ah);var Bh=Array(29);sh(Bh);var Ch=Array(30);sh(Ch);function Dh(a,b,c,d,e){this.Bc=a;this.Sc=b;this.Rc=c;this.Oc=d;this.hd=e;this.kc=a&&a.length} var Eh,Fh,Gh;function Hh(a,b){this.ec=a;this.Xa=0;this.Ca=b} function Ih(a,b){a.K[a.pending++]=b&255;a.K[a.pending++]=b>>>8&255} function P(a,b,c){a.P>16-c?(a.V|=b<>16-a.P,a.P+=c-16):(a.V|=b<>>=1,c<<=1;while(0<--b);return c>>>1} function Lh(a,b,c){var d=Array(16),e=0,f;for(f=1;15>=f;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[2*c+1],0!==e&&(a[2*c]=Kh(d[e]++,e))} function Mh(a){var b;for(b=0;286>b;b++)a.Y[2*b]=0;for(b=0;30>b;b++)a.Ja[2*b]=0;for(b=0;19>b;b++)a.S[2*b]=0;a.Y[512]=1;a.wa=a.bb=0;a.ea=a.matches=0} function Nh(a){8e?zh[e]:zh[256+(e>>>7)];Jh(a,g,c);h=uh[g];0!==h&&(e-=Ch[g],P(a,e,h))}}while(da.va;){var k=a.M[++a.va]=2>h?++h:0;c[2*k]=1;a.depth[k]=0;a.wa--;e&&(a.bb-=d[2*k+1])}b.Xa=h;for(g=a.va>>1;1<=g;g--)Qh(a,c,g);k=f;do g=a.M[1],a.M[1]=a.M[a.va--],Qh(a,c,1),d=a.M[1],a.M[--a.Ua]=g,a.M[--a.Ua]=d,c[2*k]=c[2*g]+c[2*d],a.depth[k]=(a.depth[g]>=a.depth[d]?a.depth[g]:a.depth[d])+1,c[2*g+1]=c[2*d+1]=k,a.M[1]=k++,Qh(a,c,1);while(2<=a.va);a.M[--a.Ua]= a.M[1];g=b.ec;k=b.Xa;d=b.Ca.Bc;e=b.Ca.kc;f=b.Ca.Sc;var l=b.Ca.Rc,m=b.Ca.hd,n,r=0;for(n=0;15>=n;n++)a.ra[n]=0;g[2*a.M[a.Ua]+1]=0;for(b=a.Ua+1;573>b;b++){var p=a.M[b];n=g[2*g[2*p+1]+1]+1;n>m&&(n=m,r++);g[2*p+1]=n;if(!(p>k)){a.ra[n]++;var w=0;p>=l&&(w=f[p-l]);var A=g[2*p];a.wa+=A*(n+w);e&&(a.bb+=A*(d[2*p+1]+w))}}if(0!==r){do{for(n=m-1;0===a.ra[n];)n--;a.ra[n]--;a.ra[n+1]+=2;a.ra[m]--;r-=2}while(0k||(g[2*d+1]!==n&&(a.wa+=(n-g[2*d+1])*g[2*d],g[2* d+1]=n),p--)}Lh(c,h,a.ra)} function Th(a,b,c){var d,e=-1,f=b[1],g=0,h=7,k=4;0===f&&(h=138,k=3);b[2*(c+1)+1]=65535;for(d=0;d<=c;d++){var l=f;f=b[2*(d+1)+1];++g=g?a.S[34]++:a.S[36]++,g=0,e=l,0===f?(h=138,k=3):l===f?(h=6,k=3):(h=7,k=4))}} function Uh(a,b,c){var d,e=-1,f=b[1],g=0,h=7,k=4;0===f&&(h=138,k=3);for(d=0;d<=c;d++){var l=f;f=b[2*(d+1)+1];if(!(++g=g?(Jh(a,17,a.S),P(a,g-3,3)):(Jh(a,18,a.S),P(a,g-11,7));g=0;e=l;0===f?(h=138,k=3):l===f?(h=6,k=3):(h=7,k=4)}}} function Vh(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.Y[2*c])return 0;if(0!==a.Y[18]||0!==a.Y[20]||0!==a.Y[26])return 1;for(c=32;256>c;c++)if(0!==a.Y[2*c])return 1;return 0} var Wh=!1;function Xh(a,b,c){a.K[a.fb+2*a.ea]=b>>>8&255;a.K[a.fb+2*a.ea+1]=b&255;a.K[a.Nb+a.ea]=c&255;a.ea++;0===b?a.Y[2*c]++:(a.matches++,b--,a.Y[2*(Ah[c]+256+1)]++,a.Ja[2*(256>b?zh[b]:zh[256+(b>>>7)])]++);return a.ea===a.ib-1} ;function Yh(a,b){a.msg=rh[b];return b} function Zh(a){for(var b=a.length;0<=--b;)a[b]=0} function $h(a){var b=a.state,c=b.pending;c>a.F&&(c=a.F);0!==c&&(N.Pa(a.jb,b.K,b.kb,c,a.Ya),a.Ya+=c,b.kb+=c,a.Wb+=c,a.F-=c,b.pending-=c,0===b.pending&&(b.kb=0))} function Q(a,b){var c=0<=a.aa?a.aa:-1,d=a.l-a.aa,e=0;if(0>>3;var g=a.bb+3+7>>>3;g<=f&&(f=g)}else f=g=d+5;if(d+4<=f&&-1!==c)P(a,b?1:0,3),Oh(a,c,d);else if(4===a.strategy||g===f)P(a,2+(b?1:0),3),Rh(a,xh,yh);else{P(a,4+(b?1:0),3);c=a.Bb.Xa+1;d=a.wb.Xa+1;e+=1;P(a,c-257,5);P(a,d-1,5);P(a,e-4,4);for(f=0;f>>8&255;a.K[a.pending++]=b&255} function bi(a,b){var c=a.sc,d=a.l,e=a.ba,f=a.uc,g=a.l>a.T-262?a.l-(a.T-262):0,h=a.window,k=a.Da,l=a.oa,m=a.l+258,n=h[d+e-1],r=h[d+e];a.ba>=a.jc&&(c>>=2);f>a.o&&(f=a.o);do{var p=b;if(h[p+e]===r&&h[p+e-1]===n&&h[p]===h[d]&&h[++p]===h[d+1]){d+=2;for(p++;h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&de){a.Wa=b;e=p;if(p>=f)break;n=h[d+e-1];r=h[d+e]}}}while((b=l[b&k])>g&&0!==--c);return e<= a.o?e:a.o} function ci(a){var b=a.T,c;do{var d=a.Ec-a.o-a.l;if(a.l>=b+(b-262)){N.Pa(a.window,a.window,b,b,0);a.Wa-=b;a.l-=b;a.aa-=b;var e=c=a.zb;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.oa[--e],a.oa[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.B.U)break;e=a.B;c=a.window;f=a.l+a.o;var g=e.U;g>d&&(g=d);0===g?c=0:(e.U-=g,N.Pa(c,e.input,e.Na,g,f),1===e.state.wrap?e.A=lh(e.A,c,g,f):2===e.state.wrap&&(e.A=mh(e.A,c,g,f)),e.Na+=g,e.Oa+=g,c=g);a.o+=c;if(3<=a.o+a.Z)for(d=a.l-a.Z,a.C=a.window[d],a.C= (a.C<a.o+a.Z););}while(262>a.o&&0!==a.B.U)} function di(a,b){for(var c;;){if(262>a.o){ci(a);if(262>a.o&&0===b)return 1;if(0===a.o)break}c=0;3<=a.o&&(a.C=(a.C<a.l?a.l:2;return 4===b?(Q(a,!0),0===a.B.F?3:4):a.ea&&(Q(a,!1),0===a.B.F)?1:2} function ei(a,b){for(var c,d;;){if(262>a.o){ci(a);if(262>a.o&&0===b)return 1;if(0===a.o)break}c=0;3<=a.o&&(a.C=(a.C<=a.G&&(1===a.strategy||3===a.G&&4096a.l?a.l:2;return 4===b?(Q(a,!0),0===a.B.F?3:4):a.ea&&(Q(a,!1),0===a.B.F)?1:2} function fi(a,b){for(var c,d,e,f=a.window;;){if(258>=a.o){ci(a);if(258>=a.o&&0===b)return 1;if(0===a.o)break}a.G=0;if(3<=a.o&&0a.o&&(a.G=a.o)}3<=a.G?(c=Xh(a,1,a.G-3),a.o-=a.G,a.l+=a.G,a.G=0):(c=Xh(a,0,a.window[a.l]),a.o--,a.l++);if(c&&(Q(a,!1),0===a.B.F))return 1}a.Z=0;return 4===b?(Q(a,!0),0===a.B.F?3:4):a.ea&& (Q(a,!1),0===a.B.F)?1:2} function gi(a,b){for(var c;;){if(0===a.o&&(ci(a),0===a.o)){if(0===b)return 1;break}a.G=0;c=Xh(a,0,a.window[a.l]);a.o--;a.l++;if(c&&(Q(a,!1),0===a.B.F))return 1}a.Z=0;return 4===b?(Q(a,!0),0===a.B.F?3:4):a.ea&&(Q(a,!1),0===a.B.F)?1:2} function hi(a,b,c,d,e){this.Vc=a;this.gd=b;this.kd=c;this.fd=d;this.Tc=e} var ii;ii=[new hi(0,0,0,0,function(a,b){var c=65535;for(c>a.fa-5&&(c=a.fa-5);;){if(1>=a.o){ci(a);if(0===a.o&&0===b)return 1;if(0===a.o)break}a.l+=a.o;a.o=0;var d=a.aa+c;if(0===a.l||a.l>=d)if(a.o=a.l-d,a.l=d,Q(a,!1),0===a.B.F)return 1;if(a.l-a.aa>=a.T-262&&(Q(a,!1),0===a.B.F))return 1}a.Z=0;if(4===b)return Q(a,!0),0===a.B.F?3:4;a.l>a.aa&&Q(a,!1);return 1}), new hi(4,4,8,4,di),new hi(4,5,16,8,di),new hi(4,6,32,32,di),new hi(4,4,16,16,ei),new hi(8,16,32,32,ei),new hi(8,16,128,128,ei),new hi(8,32,128,256,ei),new hi(32,128,258,1024,ei),new hi(32,258,258,4096,ei)]; function ji(){this.B=null;this.status=0;this.K=null;this.wrap=this.pending=this.kb=this.fa=0;this.u=null;this.ga=0;this.method=8;this.Va=-1;this.Da=this.Xb=this.T=0;this.window=null;this.Ec=0;this.head=this.oa=null;this.uc=this.jc=this.strategy=this.level=this.Pb=this.sc=this.ba=this.o=this.Wa=this.l=this.La=this.wc=this.G=this.aa=this.ta=this.sa=this.Lb=this.zb=this.C=0;this.Y=new N.qa(1146);this.Ja=new N.qa(122);this.S=new N.qa(78);Zh(this.Y);Zh(this.Ja);Zh(this.S);this.Zb=this.wb=this.Bb=null; this.ra=new N.qa(16);this.M=new N.qa(573);Zh(this.M);this.Ua=this.va=0;this.depth=new N.qa(573);Zh(this.depth);this.P=this.V=this.Z=this.matches=this.bb=this.wa=this.fb=this.ea=this.ib=this.Nb=0} function ki(a,b){if(!a||!a.state||5b)return a?Yh(a,-2):-2;var c=a.state;if(!a.jb||!a.input&&0!==a.U||666===c.status&&4!==b)return Yh(a,0===a.F?-5:-2);c.B=a;var d=c.Va;c.Va=b;if(42===c.status)if(2===c.wrap)a.A=0,T(c,31),T(c,139),T(c,8),c.u?(T(c,(c.u.text?1:0)+(c.u.Aa?2:0)+(c.u.za?4:0)+(c.u.name?8:0)+(c.u.comment?16:0)),T(c,c.u.time&255),T(c,c.u.time>>8&255),T(c,c.u.time>>16&255),T(c,c.u.time>>24&255),T(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),T(c,c.u.Sd&255),c.u.za&&c.u.za.length&&(T(c, c.u.za.length&255),T(c,c.u.za.length>>8&255)),c.u.Aa&&(a.A=mh(a.A,c.K,c.pending,0)),c.ga=0,c.status=69):(T(c,0),T(c,0),T(c,0),T(c,0),T(c,0),T(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),T(c,3),c.status=113);else{var e=8+(c.Xb-8<<4)<<8;e|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.l&&(e|=32);c.status=113;ai(c,e+(31-e%31));0!==c.l&&(ai(c,a.A>>>16),ai(c,a.A&65535));a.A=1}if(69===c.status)if(c.u.za){for(e=c.pending;c.ga<(c.u.za.length&65535)&&(c.pending!==c.fa||(c.u.Aa&&c.pending> e&&(a.A=mh(a.A,c.K,c.pending-e,e)),$h(a),e=c.pending,c.pending!==c.fa));)T(c,c.u.za[c.ga]&255),c.ga++;c.u.Aa&&c.pending>e&&(a.A=mh(a.A,c.K,c.pending-e,e));c.ga===c.u.za.length&&(c.ga=0,c.status=73)}else c.status=73;if(73===c.status)if(c.u.name){e=c.pending;do{if(c.pending===c.fa&&(c.u.Aa&&c.pending>e&&(a.A=mh(a.A,c.K,c.pending-e,e)),$h(a),e=c.pending,c.pending===c.fa)){var f=1;break}f=c.gae&&(a.A=mh(a.A,c.K,c.pending- e,e));0===f&&(c.ga=0,c.status=91)}else c.status=91;if(91===c.status)if(c.u.comment){e=c.pending;do{if(c.pending===c.fa&&(c.u.Aa&&c.pending>e&&(a.A=mh(a.A,c.K,c.pending-e,e)),$h(a),e=c.pending,c.pending===c.fa)){f=1;break}f=c.gae&&(a.A=mh(a.A,c.K,c.pending-e,e));0===f&&(c.status=103)}else c.status=103;103===c.status&&(c.u.Aa?(c.pending+2>c.fa&&$h(a),c.pending+2<=c.fa&&(T(c,a.A&255),T(c,a.A>>8&255),a.A=0, c.status=113)):c.status=113);if(0!==c.pending){if($h(a),0===a.F)return c.Va=-1,0}else if(0===a.U&&(b<<1)-(4>=8,c.P-= 8)):5!==b&&(P(c,0,3),Oh(c,0,0),3===b&&(Zh(c.head),0===c.o&&(c.l=0,c.aa=0,c.Z=0))),$h(a),0===a.F))return c.Va=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(T(c,a.A&255),T(c,a.A>>8&255),T(c,a.A>>16&255),T(c,a.A>>24&255),T(c,a.Oa&255),T(c,a.Oa>>8&255),T(c,a.Oa>>16&255),T(c,a.Oa>>24&255)):(ai(c,a.A>>>16),ai(c,a.A&65535));$h(a);0a.Ea&&(a.Ea+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.B=new li;this.B.F=0;var b=this.B;var c=a.level,d=a.method,e=a.Ea,f=a.jd,g=a.strategy;if(b){var h=1;-1===c&&(c=6);0>e?(h=0,e=-e):15f||9e||15c||9g||4c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.A=2===c.wrap?0:1;c.Va=0;if(!Wh){d=Array(16);for(f=g=0;28>f;f++)for(Bh[f]=g,e=0;e<1<f;f++)for(Ch[f]=g,e=0;e<1<>=7;30>f;f++)for(Ch[f]=g<<7,e=0;e<1<=e;e++)d[e]=0;for(e=0;143>=e;)xh[2*e+1]=8,e++,d[8]++;for(;255>=e;)xh[2*e+1]=9,e++,d[9]++;for(;279>=e;)xh[2*e+1]=7,e++,d[7]++;for(;287>=e;)xh[2*e+1]=8,e++,d[8]++;Lh(xh,287,d);for(e=0;30>e;e++)yh[2*e+1]=5,yh[2*e]=Kh(e,5);Eh=new Dh(xh,th,257,286,15);Fh=new Dh(yh,uh,0,30,15);Gh=new Dh([],vh,0,19,7);Wh=!0}c.Bb=new Hh(c.Y,Eh);c.wb=new Hh(c.Ja,Fh);c.Zb=new Hh(c.S, Gh);c.V=0;c.P=0;Mh(c);c=0}else c=Yh(b,-2);0===c&&(b=b.state,b.Ec=2*b.T,Zh(b.head),b.Pb=ii[b.level].gd,b.jc=ii[b.level].Vc,b.uc=ii[b.level].kd,b.sc=ii[b.level].fd,b.l=0,b.aa=0,b.o=0,b.Z=0,b.G=b.ba=2,b.La=0,b.C=0);b=c}}else b=-2;if(0!==b)throw Error(rh[b]);a.header&&(b=this.B)&&b.state&&2===b.state.wrap&&(b.state.u=a.header);if(a.gb){var l;"string"===typeof a.gb?l=kh(a.gb):"[object ArrayBuffer]"===mi.call(a.gb)?l=new Uint8Array(a.gb):l=a.gb;a=this.B;f=l;g=f.length;if(a&&a.state)if(l=a.state,b=l.wrap, 2===b||1===b&&42!==l.status||l.o)b=-2;else{1===b&&(a.A=lh(a.A,f,g,0));l.wrap=0;g>=l.T&&(0===b&&(Zh(l.head),l.l=0,l.aa=0,l.Z=0),c=new N.Ha(l.T),N.Pa(c,f,g-l.T,l.T,0),f=c,g=l.T);c=a.U;d=a.Na;e=a.input;a.U=g;a.Na=0;a.input=f;for(ci(l);3<=l.o;){f=l.l;g=l.o-2;do l.C=(l.C<f&&(b.subarray&&hh||!b.subarray))b= String.fromCharCode.apply(null,N.Vb(b,f));else{for(var g="",h=0;hc&&(c=b.length),f=b.indexOf("?"),0>f||f>c?(f=c,e=""):e=b.substring(f+1,c),b=[b.slice(0,f),e,b.slice(c)],c=b[1],b[1]=a?c?c+"&"+a:a:c,a=b[0]+(b[1]?"?"+b[1]:"")+b[2]):a=b;return a+d} function Lj(a){if(!b)var b=window.location.href;var c=a.match(Rb)[1]||null,d=Tb(a);c&&d?(a=a.match(Rb),b=b.match(Rb),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Tb(b)==d&&(Number(b.match(Rb)[4]||null)||null)==(Number(a.match(Rb)[4]||null)||null):!0;return a} function Gj(a){return a&&a.match(Dj)?a:decodeURIComponent(a.replace(/\+/g," "))} ;function Mj(a){var b=Nj;a=void 0===a?C("yt.ads.biscotti.lastId_")||"":a;var c=Object,d=c.assign,e={};e.dt=ce;e.flash="0";a:{try{var f=b.h.top.location.href}catch(aa){f=2;break a}f=f?f===b.i.location.href?0:1:2}e=(e.frm=f,e);try{e.u_tz=-(new Date).getTimezoneOffset();var g=void 0===g?Gd:g;try{var h=g.history.length}catch(aa){h=0}e.u_his=h;var k;e.u_h=null==(k=Gd.screen)?void 0:k.height;var l;e.u_w=null==(l=Gd.screen)?void 0:l.width;var m;e.u_ah=null==(m=Gd.screen)?void 0:m.availHeight;var n;e.u_aw= null==(n=Gd.screen)?void 0:n.availWidth;var r;e.u_cd=null==(r=Gd.screen)?void 0:r.colorDepth}catch(aa){}h=b.h;try{var p=h.screenX;var w=h.screenY}catch(aa){}try{var A=h.outerWidth;var I=h.outerHeight}catch(aa){}try{var M=h.innerWidth;var S=h.innerHeight}catch(aa){}try{var O=h.screenLeft;var ua=h.screenTop}catch(aa){}try{M=h.innerWidth,S=h.innerHeight}catch(aa){}try{var Rc=h.screen.availWidth;var Ia=h.screen.availTop}catch(aa){}p=[O,ua,p,w,Rc,Ia,A,I,M,S];w=b.h.top;try{var va=(w||window).document,ba= "CSS1Compat"==va.compatMode?va.documentElement:va.body;var ha=(new Id(ba.clientWidth,ba.clientHeight)).round()}catch(aa){ha=new Id(-12245933,-12245933)}va=ha;ha={};var ia=void 0===ia?z:ia;ba=new af;ia.SVGElement&&ia.document.createElementNS&&ba.set(0);w=ae();w["allow-top-navigation-by-user-activation"]&&ba.set(1);w["allow-popups-to-escape-sandbox"]&&ba.set(2);ia.crypto&&ia.crypto.subtle&&ba.set(3);ia.TextDecoder&&ia.TextEncoder&&ba.set(4);ia=bf(ba);ha.bc=ia;ha.bih=va.height;ha.biw=va.width;ha.brdim= p.join();b=b.i;b=(ha.vis=b.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[b.visibilityState||b.webkitVisibilityState||b.mozVisibilityState||""]||0,ha.wgl=!!Gd.WebGLRenderingContext,ha);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c} var Nj=new function(){var a=window.document;this.h=window;this.i=a}; B("yt.ads_.signals_.getAdSignalsString",function(a){return Ij(Mj(a))});Date.now();var Oj="XMLHttpRequest"in z?function(){return new XMLHttpRequest}:null; function Pj(){if(!Oj)return null;var a=Oj();return"open"in a?a:null} ;var Qj={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL", "X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},Rj="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(ka(ee)),Sj=!1; function Tj(a,b){b=void 0===b?{}:b;var c=Lj(a),d=W("web_ajax_ignore_global_headers_if_set"),e;for(e in Qj){var f=V(Qj[e]);"X-Goog-Visitor-Id"!==e||f||(f=V("VISITOR_DATA"));!f||!c&&Tb(a)||d&&void 0!==b[e]||(b[e]=f)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!Tb(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!Tb(a)){try{var g=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(h){}g&&(b["X-YouTube-Time-Zone"]=g)}document.location.hostname.endsWith("youtubeeducation.com")|| !c&&Tb(a)||(b["X-YouTube-Ad-Signals"]=Ij(Mj()));return b} function Uj(a){var b=window.location.search,c=Tb(a);W("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Lj(a)&&(c=document.location.hostname);var d=Sb(a.match(Rb)[5]||null);d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=Jj(b),f={};E(Rj,function(g){e[g]&&(f[g]=e[g])}); return Kj(a,f||{},!1)} function Vj(a,b){var c=b.format||"JSON";a=Wj(a,b);var d=Xj(a,b),e=!1,f=Yj(a,function(k){if(!e){e=!0;h&&window.clearTimeout(h);a:switch(k&&"status"in k?k.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:var l=!0;break a;default:l=!1}var m=null,n=400<=k.status&&500>k.status,r=500<=k.status&&600>k.status;if(l||n||r)m=Zj(a,c,k,b.convertToSafeHtml);if(l)a:if(k&&204==k.status)l=!0;else{switch(c){case "XML":l=0==parseInt(m&&m.return_code,10);break a;case "RAW":l=!0;break a}l= !!m}m=m||{};n=b.context||z;l?b.onSuccess&&b.onSuccess.call(n,k,m):b.onError&&b.onError.call(n,k,m);b.onFinish&&b.onFinish.call(n,k,m)}},b.method,d,b.headers,b.responseType,b.withCredentials); d=b.timeout||0;if(b.onTimeout&&0>3;switch(e&7){case 0:e=nk(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=nk(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(db)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity} ;function ok(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d=f)gm(a,k,p,g,w,b.join(),e),h=w;I.D(2);break;case 3:return I.return(Promise.reject(h))}})} function gm(a,b,c,d,e,f,g){b=c-b;e?(e instanceof X&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Mk("QUOTA_EXCEEDED",{dbName:Ok(a.h.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:g.mode}),e instanceof X&&"UNKNOWN_ABORT"===e.type&&(c-=a.j,0>c&&c>=Math.pow(2,31)&&(c=0),Mk("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.i=!0),hm(a,!1,d,f,b,g.tag),Lk(e)):hm(a,!0,d,f,b,g.tag)} function hm(a,b,c,d,e,f){Mk("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.i,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})} q.getName=function(){return this.h.name}; function cm(a){this.h=a} q=cm.prototype;q.add=function(a,b){return Xl(this.h.add(a,b))}; q.autoIncrement=function(){return this.h.autoIncrement}; q.clear=function(){return Xl(this.h.clear()).then(function(){})}; function im(a,b,c){a.h.createIndex(b,c,{unique:!1})} function jm(a,b){return km(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})} q.delete=function(a){return a instanceof IDBKeyRange?jm(this,a):Xl(this.h.delete(a))}; q.get=function(a){return Xl(this.h.get(a))}; q.index=function(a){try{return new lm(this.h.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new Wk(a,this.h.name);throw b;}}; q.getName=function(){return this.h.name}; q.keyPath=function(){return this.h.keyPath}; function km(a,b,c){a=a.h.openCursor(b.query,b.direction);return mm(a).then(function(d){return Yl(d,c)})} function em(a){var b=this;this.h=a;this.j=new Map;this.i=!1;this.done=new Promise(function(c,d){b.h.addEventListener("complete",function(){c()}); b.h.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.h.error)}); b.h.addEventListener("abort",function(){var e=b.h.error;if(e)d(e);else if(!b.i){e=X;for(var f=b.h.objectStoreNames,g=[],h=0;h=I},A); A.done.catch(function(I){e(I)})}catch(I){e(I)}}); g.addEventListener("success",function(){var p=g.result;k&&p.addEventListener("versionchange",function(){k(f())}); p.addEventListener("close",function(){Mk("IDB_UNEXPECTEDLY_CLOSED",{dbName:Ok(a),dbVersion:p.version});l&&l()}); d(f())}); g.addEventListener("error",function(){e(g.error)}); h&&g.addEventListener("blocked",function(){h()})})} function qm(a,b,c){c=void 0===c?{}:c;return pm(a,b,c)} function rm(a,b){b=void 0===b?{}:b;var c,d,e,f;return y(function(g){if(1==g.h)return za(g,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.Jc)&&c.addEventListener("blocked",function(){e()}),x(g,il(c),4); if(2!=g.h)return Aa(g,0);f=Ba(g);throw Yk(f,a,"",-1);})} ;function sm(a,b){this.name=a;this.options=b;this.j=!0;this.v=this.m=0} sm.prototype.i=function(a,b,c){c=void 0===c?{}:c;return qm(a,b,c)}; sm.prototype.delete=function(a){a=void 0===a?{}:a;return rm(this.name,a)}; function tm(a,b){return new X("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})} function um(a,b){if(!b)throw Zk("openWithToken",Ok(a.name));return vm(a)} function vm(a){function b(){var f,g,h,k,l,m,n,r,p,w;return y(function(A){switch(A.h){case 1:return g=null!=(f=Error().stack)?f:"",za(A,2),x(A,a.i(a.name,a.options.version,d),4);case 4:h=A.i;for(var I=a.options,M=[],S=u(Object.keys(I.Za)),O=S.next();!O.done;O=S.next()){O=O.value;var ua=I.Za[O],Rc=void 0===ua.md?Number.MAX_VALUE:ua.md;!(h.h.version>=ua.eb)||h.h.version>=Rc||h.h.objectStoreNames.contains(O)||M.push(O)}k=M;if(0===k.length){A.D(5);break}l=Object.keys(a.options.Za);m=h.objectStoreNames(); if(a.va.options.version+1)throw r.close(),a.j=!1,tm(a,p);return A.return(r);case 8:throw c(),n instanceof Error&&!W("ytidb_async_stack_killswitch")&& (n.stack=n.stack+"\n"+g.substring(g.indexOf("\n")+1)),Yk(n,a.name,"",null!=(w=a.options.version)?w:-1);}})} function c(){a.h===e&&(a.h=void 0)} if(!a.j)throw tm(a);if(a.h)return a.h;var d={Kc:function(f){f.close()}, closed:c,od:c,upgrade:a.options.upgrade};var e=b();a.h=e;return a.h} ;var wm=new sm("YtIdbMeta",{Za:{databases:{eb:1}},upgrade:function(a,b){b(1)&&bm(a,"databases",{keyPath:"actualName"})}}); function xm(a,b){var c;return y(function(d){if(1==d.h)return x(d,um(wm,b),2);c=d.i;return d.return(am(c,["databases"],{W:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(g){if(g?a.actualName!==g.actualName||a.publicName!==g.publicName||a.userIdentifier!==g.userIdentifier:1)return Xl(f.h.put(a,void 0)).then(function(){})})}))})} function ym(a,b){var c;return y(function(d){if(1==d.h)return a?x(d,um(wm,b),2):d.return();c=d.i;return d.return(c.delete("databases",a))})} function zm(a,b){var c,d;return y(function(e){return 1==e.h?(c=[],x(e,um(wm,b),2)):3!=e.h?(d=e.i,x(e,am(d,["databases"],{W:!0,mode:"readonly"},function(f){c.length=0;return km(f.objectStore("databases"),{},function(g){a(g.la())&&c.push(g.la());return g.continue()})}),3)):e.return(c)})} function Am(a){return zm(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)} ;var Bm,Cm=new function(){}(new function(){}); function Dm(){var a,b,c,d;return y(function(e){switch(e.h){case 1:a=Ik();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);var f;if(f=ek)f=/WebKit\/([0-9]+)/.exec(Nb()),f=!!(f&&600<=parseInt(f[1],10));f&&(f=/WebKit\/([0-9]+)/.exec(Nb()),f=!(f&&602<=parseInt(f[1],10)));if(f||dc)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(g){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1); za(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return x(e,xm(d,Cm),4);case 4:return x(e,ym("yt-idb-test-do-not-use",Cm),5);case 5:return e.return(!0);case 2:return Ba(e),e.return(!1)}})} function Em(){if(void 0!==Bm)return Bm;Kk=!0;return Bm=Dm().then(function(a){Kk=!1;var b;if(null!=(b=Hk())&&b.h){var c;b={hasSucceededOnce:(null==(c=Ik())?void 0:c.hasSucceededOnce)||a};var d;null==(d=Hk())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})} function Fm(){return C("ytglobal.idbToken_")||void 0} function Gm(){var a=Fm();return a?Promise.resolve(a):Em().then(function(b){(b=b?Cm:void 0)&&B("ytglobal.idbToken_",b);return b})} ;new $f;function Hm(a){if(!Ek())throw a=new X("AUTH_INVALID",{dbName:a}),Lk(a),a;var b=Fk();return{actualName:a+":"+b,publicName:a,userIdentifier:b}} function Im(a,b,c,d){var e,f,g,h,k,l;return y(function(m){switch(m.h){case 1:return f=null!=(e=Error().stack)?e:"",x(m,Gm(),2);case 2:g=m.i;if(!g)throw h=Zk("openDbImpl",a,b),W("ytidb_async_stack_killswitch")||(h.stack=h.stack+"\n"+f.substring(f.indexOf("\n")+1)),Lk(h),h;Nk(a);k=c?{actualName:a,publicName:a,userIdentifier:void 0}:Hm(a);za(m,3);return x(m,xm(k,g),5);case 5:return x(m,qm(k.actualName,b,d),6);case 6:return m.return(m.i);case 3:return l=Ba(m),za(m,7),x(m,ym(k.actualName,g),9);case 9:Aa(m, 8);break;case 7:Ba(m);case 8:throw l;}})} function Jm(a,b,c){c=void 0===c?{}:c;return Im(a,b,!1,c)} function Km(a,b,c){c=void 0===c?{}:c;return Im(a,b,!0,c)} function Lm(a,b){b=void 0===b?{}:b;var c,d;return y(function(e){if(1==e.h)return x(e,Gm(),2);if(3!=e.h){c=e.i;if(!c)return e.return();Nk(a);d=Hm(a);return x(e,rm(d.actualName,b),3)}return x(e,ym(d.actualName,c),0)})} function Mm(a,b,c){a=a.map(function(d){return y(function(e){return 1==e.h?x(e,rm(d.actualName,b),2):x(e,ym(d.actualName,c),0)})}); return Promise.all(a).then(function(){})} function Nm(){var a=void 0===a?{}:a;var b,c;return y(function(d){if(1==d.h)return x(d,Gm(),2);if(3!=d.h){b=d.i;if(!b)return d.return();Nk("LogsDatabaseV2");return x(d,Am(b),3)}c=d.i;return x(d,Mm(c,a,b),0)})} function Om(a,b){b=void 0===b?{}:b;var c;return y(function(d){if(1==d.h)return x(d,Gm(),2);if(3!=d.h){c=d.i;if(!c)return d.return();Nk(a);return x(d,rm(a,b),3)}return x(d,ym(a,c),0)})} ;function Pm(a,b){sm.call(this,a,b);this.options=b;Nk(a)} v(Pm,sm);function Qm(a,b){var c;return function(){c||(c=new Pm(a,b));return c}} Pm.prototype.i=function(a,b,c){c=void 0===c?{}:c;return(this.options.Gb?Km:Jm)(a,b,Object.assign({},c))}; Pm.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.Gb?Om:Lm)(this.name,a)}; function Rm(a,b){return Qm(a,b)} ;var Sm={},Tm=Rm("ytGcfConfig",{Za:(Sm.coldConfigStore={eb:1},Sm.hotConfigStore={eb:1},Sm),Gb:!1,upgrade:function(a,b){b(1)&&(im(bm(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),im(bm(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});function Um(a){return um(Tm(),a)} function Vm(a,b,c){var d,e,f;return y(function(g){switch(g.h){case 1:return d={config:a,hashData:b,timestamp:Y()},x(g,Um(c),2);case 2:return e=g.i,x(g,e.clear("hotConfigStore"),3);case 3:return x(g,dm(e,"hotConfigStore",d),4);case 4:return f=g.i,g.return(f)}})} function Wm(a,b,c,d){var e,f,g;return y(function(h){switch(h.h){case 1:return e={config:a,hashData:b,configData:c,timestamp:Y()},x(h,Um(d),2);case 2:return f=h.i,x(h,f.clear("coldConfigStore"),3);case 3:return x(h,dm(f,"coldConfigStore",e),4);case 4:return g=h.i,h.return(g)}})} function Xm(a){var b,c;return y(function(d){return 1==d.h?x(d,Um(a),2):3!=d.h?(b=d.i,c=void 0,x(d,am(b,["coldConfigStore"],{mode:"readwrite",W:!0},function(e){return nm(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.la()})}),3)):d.return(c)})} function Ym(a){var b,c;return y(function(d){return 1==d.h?x(d,Um(a),2):3!=d.h?(b=d.i,c=void 0,x(d,am(b,["hotConfigStore"],{mode:"readwrite",W:!0},function(e){return nm(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.la()})}),3)):d.return(c)})} ;function Zm(){this.h=0} function $m(a,b,c){var d,e,f;return y(function(g){if(1==g.h){if(!W("update_log_event_config"))return g.D(0);c&&(a.i=c,B("yt.gcf.config.hotConfigGroup",a.i));a.hotHashData=b;B("yt.gcf.config.hotHashData",a.hotHashData);return(d=Fm())?c?g.D(4):x(g,Ym(d),5):g.D(0)}4!=g.h&&(e=g.i,c=null==(f=e)?void 0:f.config);return x(g,Vm(c,b,d),0)})} function an(a,b,c){var d,e,f,g;return y(function(h){if(1==h.h){if(!W("update_log_event_config"))return h.D(0);a.coldHashData=b;B("yt.gcf.config.coldHashData",a.coldHashData);return(d=Fm())?c?h.D(4):x(h,Xm(d),5):h.D(0)}4!=h.h&&(e=h.i,c=null==(f=e)?void 0:f.config);if(!c)return h.D(0);g=c.configData;return x(h,Wm(c,b,g,d),0)})} ;function bn(){return"INNERTUBE_API_KEY"in gj&&"INNERTUBE_API_VERSION"in gj} function cn(){return{Xc:V("INNERTUBE_API_KEY"),Yc:V("INNERTUBE_API_VERSION"),Mb:V("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),lc:V("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),Zc:V("INNERTUBE_CONTEXT_CLIENT_NAME",1),mc:V("INNERTUBE_CONTEXT_CLIENT_VERSION"),oc:V("INNERTUBE_CONTEXT_HL"),nc:V("INNERTUBE_CONTEXT_GL"),ad:V("INNERTUBE_HOST_OVERRIDE")||"",cd:!!V("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),bd:!!V("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:V("SERIALIZED_CLIENT_CONFIG_DATA")}} function dn(a){var b={client:{hl:a.oc,gl:a.nc,clientName:a.lc,clientVersion:a.mc,configInfo:a.Mb}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=z.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=V("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=rj();0=Math.random()&&on("gel_compression_latency_payload",e);if(!W("only_compress_gel_if_smaller")||(window.Blob?k.length<(new Blob(b.split(""))).size:1))c.headers||(c.headers={}),c.headers["Content-Encoding"]="gzip",c.postBody=k,c.postParams=void 0;d(a,c)}catch(l){oj(l), d(a,c)}} ;function qn(a){a=Object.assign({},a);delete a.Authorization;var b=oe();if(b){var c=new Lf;c.update(V("INNERTUBE_API_KEY"));c.update(b);a.hash=yc(c.digest(),3)}return a} ;var rn;function sn(){rn||(rn=new Gk("yt.innertube"));return rn} function tn(a,b,c,d){if(d)return null;d=sn().get("nextId",!0)||1;var e=sn().get("requests",!0)||{};e[d]={method:a,request:b,authState:qn(c),requestTime:Math.round(Y())};sn().set("nextId",d+1,86400,!0);sn().set("requests",e,86400,!0);return d} function un(a){var b=sn().get("requests",!0)||{};delete b[a];sn().set("requests",b,86400,!0)} function vn(a){var b=sn().get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(6E4>Math.round(Y())-d.requestTime)){var e=d.authState,f=qn(mn(!1));pb(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(Y())),wn(a,d.method,e,{}));delete b[c]}}sn().set("requests",b,86400,!0)}} ;function xn(a){this.sb=this.h=!1;this.potentialEsfErrorCounter=this.i=0;this.handleError=function(){}; this.Ta=function(){}; this.now=Date.now;this.hb=!1;var b;this.Cc=null!=(b=a.Cc)?b:100;var c;this.Ac=null!=(c=a.Ac)?c:1;var d;this.yc=null!=(d=a.yc)?d:2592E6;var e;this.xc=null!=(e=a.xc)?e:12E4;var f;this.zc=null!=(f=a.zc)?f:5E3;var g;this.I=null!=(g=a.I)?g:void 0;this.xb=!!a.xb;var h;this.vb=null!=(h=a.vb)?h:.1;var k;this.Db=null!=(k=a.Db)?k:10;a.handleError&&(this.handleError=a.handleError);a.Ta&&(this.Ta=a.Ta);a.hb&&(this.hb=a.hb);a.sb&&(this.sb=a.sb);this.L=a.L;this.ia=a.ia;this.O=a.O;this.R=a.R;this.xa=a.xa;this.Tb= a.Tb;this.Sb=a.Sb;yn(this)&&(!this.L||this.L("networkless_logging"))&&zn(this)} function zn(a){yn(a)&&!a.hb&&(a.h=!0,a.xb&&Math.random()<=a.vb&&a.O.Mc(a.I),An(a),a.R.da()&&a.mb(),a.R.Ka(a.Tb,a.mb.bind(a)),a.R.Ka(a.Sb,a.ac.bind(a)))} q=xn.prototype;q.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(yn(this)&&this.h){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.O.set(d,this.I).then(function(e){d.id=e;c.R.da()&&Bn(c,d)}).catch(function(e){Bn(c,d); Cn(c,e)})}else this.xa(a,b)}; q.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(yn(this)&&this.h){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.L&&this.L("nwl_skip_retry")&&(e.skipRetry=c);if(this.R.da()||this.L&&this.L("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){}; b.onError=function(g,h){return y(function(k){if(1==k.h)return x(k,d.O.set(e,d.I).catch(function(l){Cn(d,l)}),2); f(g,h);k.h=0})}}this.xa(a,b,e.skipRetry)}else this.O.set(e,this.I).catch(function(g){d.xa(a,b,e.skipRetry); Cn(d,g)})}else this.xa(a,b,this.L&&this.L("nwl_skip_retry")&&c)}; q.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(yn(this)&&this.h){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){}; d.options.onSuccess=function(g,h){void 0!==d.id?c.O.Ra(d.id,c.I):e=!0;c.R.Ma&&c.L&&c.L("vss_network_hint")&&c.R.Ma(!0);f(g,h)}; this.xa(d.url,d.options);this.O.set(d,this.I).then(function(g){d.id=g;e&&c.O.Ra(d.id,c.I)}).catch(function(g){Cn(c,g)})}else this.xa(a,b)}; q.mb=function(){var a=this;if(!yn(this))throw Zk("throttleSend");this.i||(this.i=this.ia.ka(function(){var b;return y(function(c){if(1==c.h)return x(c,a.O.ic("NEW",a.I),2);if(3!=c.h)return b=c.i,b?x(c,Bn(a,b),3):(a.ac(),c.return());a.i&&(a.i=0,a.mb());c.h=0})},this.Cc))}; q.ac=function(){this.ia.Qa(this.i);this.i=0}; function Bn(a,b){var c,d;return y(function(e){switch(e.h){case 1:if(!yn(a))throw c=Zk("immediateSend"),c;if(void 0===b.id){e.D(2);break}return x(e,a.O.ed(b.id,a.I),3);case 3:(d=e.i)||a.Ta(Error("The request cannot be found in the database."));case 2:if(Dn(a,b,a.yc)){e.D(4);break}a.Ta(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.D(5);break}return x(e,a.O.Ra(b.id,a.I),5);case 5:return e.return();case 4:b.skipRetry||(b=En(a,b));if(!b){e.D(0);break}if(!b.skipRetry|| void 0===b.id){e.D(8);break}return x(e,a.O.Ra(b.id,a.I),8);case 8:a.xa(b.url,b.options,!!b.skipRetry),e.h=0}})} function En(a,b){if(!yn(a))throw Zk("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){var g,h,k,l;return y(function(m){switch(m.h){case 1:g=Fn(f);h=Gn(f);if(!(a.L&&a.L("nwl_consider_error_code")&&g||a.L&&!a.L("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.Db)){m.D(2);break}if(!a.R.Fb){m.D(3);break}return x(m,a.R.Fb(),3);case 3:if(a.R.da()){m.D(2);break}c(e,f);if(!a.L||!a.L("nwl_consider_error_code")||void 0===(null==(k=b)?void 0:k.id)){m.D(6);break}return x(m,a.O.Ub(b.id,a.I,!1),6);case 6:return m.return();case 2:if(a.L&&a.L("nwl_consider_error_code")&& !g&&a.potentialEsfErrorCounter>a.Db)return m.return();a.potentialEsfErrorCounter++;if(void 0===(null==(l=b)?void 0:l.id)){m.D(8);break}return b.sendCount=c?!1:!0} function An(a){if(!yn(a))throw Zk("retryQueuedRequests");a.O.ic("QUEUED",a.I).then(function(b){b&&!Dn(a,b,a.xc)?a.ia.ka(function(){return y(function(c){if(1==c.h)return void 0===b.id?c.D(2):x(c,a.O.Ub(b.id,a.I),2);An(a);c.h=0})}):a.R.da()&&a.mb()})} function Cn(a,b){a.Fc&&!a.R.da()?a.Fc(b):a.handleError(b)} function yn(a){return!!a.I||a.sb} function Fn(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0} function Gn(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)} ;var Hn; function In(){if(Hn)return Hn();var a={};Hn=Rm("LogsDatabaseV2",{Za:(a.LogsRequestsStore={eb:2},a),Gb:!1,upgrade:function(b,c,d){c(2)&&bm(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.h.indexNames.contains("newRequest")&&d.h.deleteIndex("newRequest"),im(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&b.h.objectStoreNames.contains("sapisid")&&b.h.deleteObjectStore("sapisid");c(9)&&b.h.objectStoreNames.contains("SWHealthLog")&&b.h.deleteObjectStore("SWHealthLog")}, version:9});return Hn()} ;function Jn(a){return um(In(),a)} function Kn(a,b){var c,d,e,f;return y(function(g){if(1==g.h)return c={startTime:Y(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},x(g,Jn(b),2);if(3!=g.h)return d=g.i,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:V("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),x(g,dm(d,"LogsRequestsStore",e),3);f=g.i;c.pd=Y();Ln(c);return g.return(f)})} function Mn(a,b){var c,d,e,f,g,h,k;return y(function(l){if(1==l.h)return c={startTime:Y(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},x(l,Jn(b),2);if(3!=l.h)return d=l.i,e=V("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],g=[a,e,Y()],h=IDBKeyRange.bound(f,g),k=void 0,x(l,am(d,["LogsRequestsStore"],{mode:"readwrite",W:!0},function(m){return nm(m.objectStore("LogsRequestsStore").index("newRequestV2"),{query:h,direction:"prev"},function(n){n.la()&&(k=n.la(),"NEW"===a&&(k.status="QUEUED",n.update(k)))})}), 3); c.pd=Y();Ln(c);return l.return(k)})} function Nn(a,b){var c;return y(function(d){if(1==d.h)return x(d,Jn(b),2);c=d.i;return d.return(am(c,["LogsRequestsStore"],{mode:"readwrite",W:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(g){if(g)return g.status="QUEUED",Xl(f.h.put(g,void 0)).then(function(){return g})})}))})} function On(a,b,c,d){c=void 0===c?!0:c;var e;return y(function(f){if(1==f.h)return x(f,Jn(b),2);e=f.i;return f.return(am(e,["LogsRequestsStore"],{mode:"readwrite",W:!0},function(g){var h=g.objectStore("LogsRequestsStore");return h.get(a).then(function(k){return k?(k.status="NEW",c&&(k.sendCount+=1),void 0!==d&&(k.options.compress=d),Xl(h.h.put(k,void 0)).then(function(){return k})):cl.resolve(void 0)})}))})} function Pn(a,b){var c;return y(function(d){if(1==d.h)return x(d,Jn(b),2);c=d.i;return d.return(c.delete("LogsRequestsStore",a))})} function Qn(a){var b,c;return y(function(d){if(1==d.h)return x(d,Jn(a),2);b=d.i;c=Y()-2592E6;return x(d,am(b,["LogsRequestsStore"],{mode:"readwrite",W:!0},function(e){return km(e.objectStore("LogsRequestsStore"),{},function(f){if(f.la().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})} function Rn(){y(function(a){return x(a,Nm(),0)})} function Ln(a){W("nwl_csi_killswitch")||.01>=Math.random()&&on("nwl_transaction_latency_payload",a)} ;var Sn={},Tn=Rm("ServiceWorkerLogsDatabase",{Za:(Sn.SWHealthLog={eb:1},Sn),Gb:!0,upgrade:function(a,b){b(1)&&im(bm(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});function Un(a){return um(Tn(),a)} function Vn(a){var b,c;y(function(d){if(1==d.h)return x(d,Un(a),2);b=d.i;c=Y()-2592E6;return x(d,am(b,["SWHealthLog"],{mode:"readwrite",W:!0},function(e){return km(e.objectStore("SWHealthLog"),{},function(f){if(f.la().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})} function Wn(a){var b;return y(function(c){if(1==c.h)return x(c,Un(a),2);b=c.i;return x(c,b.clear("SWHealthLog"),0)})} ;var Xn={},Yn=0;function Zn(a){var b=new Image,c=""+Yn++;Xn[c]=b;b.onload=b.onerror=function(){delete Xn[c]}; b.src=a} ;function $n(){this.h=new Map;this.i=!1} function ao(){if(!$n.h){var a=C("yt.networkRequestMonitor.instance")||new $n;B("yt.networkRequestMonitor.instance",a);$n.h=a}return $n.h} $n.prototype.requestComplete=function(a,b){b&&(this.i=!0);a=this.removeParams(a);this.h.get(a)||this.h.set(a,b)}; $n.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.h.get(a))?!1:!1===a&&this.i?!0:null}; $n.prototype.removeParams=function(a){return a.split("?")[0]}; $n.prototype.removeParams=$n.prototype.removeParams;$n.prototype.isEndpointCFR=$n.prototype.isEndpointCFR;$n.prototype.requestComplete=$n.prototype.requestComplete;$n.getInstance=ao;var bo;function co(){bo||(bo=new Gk("yt.offline"));return bo} function eo(a){if(W("offline_error_handling")){var b=co().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);co().set("errors",b,2592E3,!0)}} ;function Z(){Te.call(this);var a=this;this.m=!1;this.i=Ze();this.i.Ka("networkstatus-online",function(){if(a.m&&W("offline_error_handling")){var b=co().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new Dk(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;nj(d)}co().set("errors",{},2592E3,!0)}}})} v(Z,Te);function fo(){if(!Z.h){var a=C("yt.networkStatusManager.instance")||new Z;B("yt.networkStatusManager.instance",a);Z.h=a}return Z.h} q=Z.prototype;q.da=function(){return this.i.da()}; q.Ma=function(a){this.i.i=a}; q.Uc=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; q.Pc=function(){this.m=!0}; q.Ka=function(a,b){return this.i.Ka(a,b)}; q.Fb=function(a){a=Xe(this.i,a);a.then(function(b){W("use_cfr_monitor")&&ao().requestComplete("generate_204",b)}); return a}; Z.prototype.sendNetworkCheckRequest=Z.prototype.Fb;Z.prototype.listen=Z.prototype.Ka;Z.prototype.enableErrorFlushing=Z.prototype.Pc;Z.prototype.getWindowStatus=Z.prototype.Uc;Z.prototype.networkStatusHint=Z.prototype.Ma;Z.prototype.isNetworkAvailable=Z.prototype.da;Z.getInstance=fo;function go(a){a=void 0===a?{}:a;Te.call(this);var b=this;this.i=this.H=0;this.m=fo();var c=C("yt.networkStatusManager.instance.listen").bind(this.m);c&&(a.Eb?(this.Eb=a.Eb,c("networkstatus-online",function(){ho(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){ho(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){Ue(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Ue(b,"publicytnetworkstatus-offline")})))} v(go,Te);go.prototype.da=function(){var a=C("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.m)():!0}; go.prototype.Ma=function(a){var b=C("yt.networkStatusManager.instance.networkStatusHint").bind(this.m);b&&b(a)}; go.prototype.Fb=function(a){var b=this,c;return y(function(d){c=C("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.m);return W("skip_network_check_if_cfr")&&ao().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Ma((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.da())})):c?d.return(c(a)):d.return(!0)})}; function ho(a,b){a.Eb?a.i?($e.Qa(a.H),a.H=$e.ka(function(){a.s!==b&&(Ue(a,b),a.s=b,a.i=Y())},a.Eb-(Y()-a.i))):(Ue(a,b),a.s=b,a.i=Y()):Ue(a,b)} ;var io;function jo(){var a=xn.call;io||(io=new go({Pd:!0,Od:!0}));a.call(xn,this,{O:{Mc:Qn,Ra:Pn,ic:Mn,ed:Nn,Ub:On,set:Kn},R:io,handleError:nj,Ta:oj,xa:ko,now:Y,Fc:eo,ia:Ck(),Tb:"publicytnetworkstatus-online",Sb:"publicytnetworkstatus-offline",xb:!0,vb:.1,Db:qj("potential_esf_error_limit",10),L:W,hb:!(Ek()&&"www.youtube-nocookie.com"!==Tb(document.location.toString()))});this.j=new $f;W("networkless_immediately_drop_all_requests")&&Rn();Om("LogsDatabaseV2")} v(jo,xn);function lo(){var a=C("yt.networklessRequestController.instance");a||(a=new jo,B("yt.networklessRequestController.instance",a),W("networkless_logging")&&Gm().then(function(b){a.I=b;zn(a);a.j.resolve();a.xb&&Math.random()<=a.vb&&a.I&&Vn(a.I);W("networkless_immediately_drop_sw_health_store")&&mo(a)})); return a} jo.prototype.writeThenSend=function(a,b){b||(b={});Ek()||(this.h=!1);xn.prototype.writeThenSend.call(this,a,b)}; jo.prototype.sendThenWrite=function(a,b,c){b||(b={});Ek()||(this.h=!1);xn.prototype.sendThenWrite.call(this,a,b,c)}; jo.prototype.sendAndWrite=function(a,b){b||(b={});Ek()||(this.h=!1);xn.prototype.sendAndWrite.call(this,a,b)}; jo.prototype.awaitInitialization=function(){return this.j.promise}; function mo(a){var b;y(function(c){if(!a.I)throw b=Zk("clearSWHealthLogsDb"),b;return c.return(Wn(a.I).catch(function(d){a.handleError(d)}))})} function ko(a,b,c){W("use_cfr_monitor")&&no(a,b);if(W("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round(Y())));else{var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round(Y())}if(c&&0===Object.keys(b).length){var e=void 0===e?"":e;var f=void 0===f?!1:f;if(a)if(e)Yj(a,void 0,"POST",e);else if(V("USE_NET_AJAX_FOR_PING_TRANSPORT",!1))Yj(a,void 0,"GET","",void 0,void 0,f);else{b:{try{var g=new bb({url:a});if(g.j&&g.i|| g.m){var h=Sb(a.match(Rb)[5]||null);var k=!(!h||!h.endsWith("/aclk")||"1"!==Yb(a,"ri"));break b}}catch(m){}k=!1}if(k){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")){var l=!0;break b}}catch(m){}l=!1}c=l?!0:!1}else c=!1;c||Zn(a)}}else b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),pn(a,b.postBody,b,Vj)):pn(a,JSON.stringify(b.postParams),b,dk):Vj(a,b)} function no(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){ao().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){ao().requestComplete(a,!0);d(e,f)}} ;var oo=z.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};B("ytNetworklessLoggingInitializationOptions",oo);function po(a){var b=this;this.config_=null;a?this.config_=a:bn()&&(this.config_=cn());zk(function(){vn(b)},5E3)} po.prototype.isReady=function(){!this.config_&&bn()&&(this.config_=cn());return!!this.config_}; function wn(a,b,c,d){function e(w){w=void 0===w?!1:w;var A;if(d.retry&&"www.youtube-nocookie.com"!=h&&(w||W("skip_ls_gel_retry")||"application/json"!==g.headers["Content-Type"]||(A=tn(b,c,l,k)),A)){var I=g.onSuccess,M=g.onFetchSuccess;g.onSuccess=function(O,ua){un(A);I(O,ua)}; c.onFetchSuccess=function(O,ua){un(A);M(O,ua)}}try{if(w&&d.retry&&!d.tc.bypassNetworkless)g.method="POST",d.tc.writeThenSend?lo().writeThenSend(p,g):lo().sendAndWrite(p,g); else if(d.compress)if(g.postBody){var S=g.postBody;"string"!==typeof S&&(S=JSON.stringify(g.postBody));pn(p,S,g,Vj)}else pn(p,JSON.stringify(g.postParams),g,dk);else W("web_all_payloads_via_jspb")?Vj(p,g):dk(p,g)}catch(O){if("InvalidAccessError"==O.name)A&&(un(A),A=0),oj(Error("An extension is blocking network request."));else throw O;}A&&zk(function(){vn(a)},5E3)} !V("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&oj(new Dk("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var f=new Dk("innertube xhrclient not ready",b,c,d);nj(f);throw f;}var g={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(w,A){if(d.onSuccess)d.onSuccess(A)}, onFetchSuccess:function(w){if(d.onSuccess)d.onSuccess(w)}, onError:function(w,A){if(d.onError)d.onError(A)}, onFetchError:function(w){if(d.onError)d.onError(w)}, timeout:d.timeout,withCredentials:!0,compress:d.compress};g.headers["Content-Type"]||(g.headers["Content-Type"]="application/json");var h="";(f=a.config_.ad)&&(h=f);var k=a.config_.cd||!1,l=mn(k,h,d);Object.assign(g.headers,l);(f=g.headers.Authorization)&&!h&&k&&(g.headers["x-origin"]=window.location.origin);var m="/youtubei/"+a.config_.Yc+"/"+b,n={alt:"json"},r=a.config_.bd&&f;r=r&&f.startsWith("Bearer");r||(n.key=a.config_.Xc);var p=Kj(""+h+m,n||{},!0);C("ytNetworklessLoggingInitializationOptions")&& oo.isNwlInitialized?Em().then(function(w){e(w)}):e(!1)} ;function qo(a){this.X=a;this.h=null;this.s=0;this.N=null;this.H=0;this.i=[];for(a=0;4>a;a++)this.i.push(0);this.m=0;this.Hb=Aj(window,"mousemove",Za(this.Ib,this));this.Jb=Cj(Za(this.Ga,this),25)} D(qo,re);qo.prototype.Ib=function(a){void 0===a.h&&vj(a);var b=a.h;void 0===a.i&&vj(a);this.h=new Hd(b,a.i)}; qo.prototype.Ga=function(){if(this.h){var a=Y();if(0!=this.s){var b=this.N,c=this.h,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.s);this.i[this.m]=.5c;c++)b+=this.i[c]||0;3<=b&&this.X();this.H=d}this.s=a;this.N=this.h;this.m=(this.m+1)%4}}; qo.prototype.Sa=function(){window.clearInterval(this.Jb);yj(this.Hb)};var ro={}; function so(){var a={},b=void 0===a.ld?!1:a.ld;a=void 0===a.Qc?!0:a.Qc;if(null==C("_lact",window)){var c=parseInt(V("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;B("_lact",c,window);B("_fact",c,window);-1==c&&to();Aj(document,"keydown",to);Aj(document,"keyup",to);Aj(document,"mousedown",to);Aj(document,"mouseup",to);b?Aj(window,"touchmove",function(){uo("touchmove",200)},{passive:!0}):(Aj(window,"resize",function(){uo("resize",200)}),a&&Aj(window,"scroll",function(){uo("scroll",200)})); new qo(function(){uo("mouse",100)}); Aj(document,"touchstart",to,{passive:!0});Aj(document,"touchend",to,{passive:!0})}} function uo(a,b){ro[a]||(ro[a]=!0,$e.ka(function(){to();ro[a]=!1},b))} function to(){null==C("_lact",window)&&so();var a=Date.now();B("_lact",a,window);-1==C("_fact",window)&&B("_fact",a,window);(a=C("ytglobal.ytUtilActivityCallback_"))&&a()} function vo(){var a=C("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)} ;var wo=z.ytPubsubPubsubInstance||new L,xo=z.ytPubsubPubsubSubscribedKeys||{},yo=z.ytPubsubPubsubTopicToKeys||{},zo=z.ytPubsubPubsubIsSynchronous||{};L.prototype.subscribe=L.prototype.subscribe;L.prototype.unsubscribeByKey=L.prototype.nb;L.prototype.publish=L.prototype.ab;L.prototype.clear=L.prototype.clear;B("ytPubsubPubsubInstance",wo);B("ytPubsubPubsubTopicToKeys",yo);B("ytPubsubPubsubIsSynchronous",zo);B("ytPubsubPubsubSubscribedKeys",xo);var Ao=Symbol("injectionDeps");function Bo(){this.i=new Map;this.h=new Map} Bo.prototype.resolve=function(a){return Co(this,a,[])}; function Co(a,b,c){var d=void 0===d?!1:d;if(-1=d.length&&Go(b)===d[0])return d;for(var e=[],f=0;f=a?Qo||(Qo=cp(function(){dp({writeThenSend:!0},W("flush_only_full_queue")?c:void 0,d);Qo=void 0},0)):10<=f-g&&(ep(d),d?Po.j=f:Oo.j=f)} function fp(a,b){W("web_all_payloads_via_jspb")&&oj(new Dk("transport.logIsolatedGelPayload called in JSPB only experiment"));if("log_event"===a.endpoint){Zo(a);var c=$o(a),d=new Map;d.set(c,[a.payload]);b&&(Mo=new b);return new ag(function(e,f){Mo&&Mo.isReady()?gp(d,Mo,e,f,{bypassNetworkless:!0},!0):e()})}} function hp(a,b){if("log_event"===a.endpoint){Zo(void 0,a);var c=$o(a,!0),d=new Map;d.set(c,[a.payload.toJSON()]);b&&(Mo=new b);return new ag(function(e){Mo&&Mo.isReady()?ip(d,Mo,e,{bypassNetworkless:!0},!0):e()})}} function $o(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new aj;c.videoId?hd(d,1,td,c.videoId):c.playlistId&&hd(d,2,td,c.playlistId);Vo[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),Uo[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c} function dp(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;!c&&W("web_all_payloads_via_jspb")&&oj(new Dk("transport.flushLogs called for JSON in JSPB only experiment"));new ag(function(d,e){c?(jp(Po.i),jp(Po.h),Po.h=0):(jp(Oo.i),jp(Oo.h),Oo.h=0);if(Mo&&Mo.isReady())if(W("use_new_in_memory_storage")){var f=a,g=c,h=Mo;f=void 0===f?{}:f;g=void 0===g?!1:g;var k=new Map,l=new Map;if(void 0!==b)g?(e=Xo().extractMatchingEntries({isJspb:g,cttAuthInfo:b}),k.set(b,e),ip(k,h,d,f)):(k=Xo().extractMatchingEntries({isJspb:g, cttAuthInfo:b}),l.set(b,k),gp(l,h,d,e,f));else if(g){e=u(Object.keys(Wo));for(g=e.next();!g.done;g=e.next())l=g.value,g=Xo().extractMatchingEntries({isJspb:!0,cttAuthInfo:l}),0Lo&&(a=1);hj("BATCH_CLIENT_COUNTER",a);return a} function kp(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]} function qp(a,b,c){if(sd(c,1))var d=1;else if(c.getPlaylistId())d=2;else return;J(a,aj,4,c);a=jd(a,Hi,1)||new Hi;c=jd(a,Fi,3)||new Fi;var e=new Ei;H(e,2,b);H(e,1,d);qd(c,12,Ei,e);J(a,Fi,3,c)} function pp(a){for(var b=[],c=0;c>=8);d[e++]=g}return yc(d,3)})):b.return(Promise.resolve(null))})} ;var Jp={};function Kp(a){return Jp[a]||(Jp[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))} ;var Lp={},Mp=[],rg=new L,Np={};function Op(){for(var a=u(Mp),b=a.next();!b.done;b=a.next())b=b.value,b()} function Pp(a,b){var c;"yt:"===a.tagName.toLowerCase().substr(0,3)?c=a.getAttribute(b):c=a?a.dataset?a.dataset[Kp(b)]:a.getAttribute("data-"+b):null;return c} function Qp(a){rg.ab.apply(rg,arguments)} ;function Rp(a){this.h=a||{};a=[this.h,window.YTConfig||{}];for(var b=0;b")&&(a=a.replace(Ab,">")),-1!=a.indexOf('"')&&(a=a.replace(Bb,""")),-1!=a.indexOf("'")&&(a=a.replace(Cb, "'")),-1!=a.indexOf("\x00")&&(a=a.replace(Db,"�")));return'')}; q.getOptions=function(a){return this.na.namespaces?a?this.na[a]?this.na[a].options||[]:[]:this.na.namespaces||[]:[]}; q.getOption=function(a,b){if(this.na.namespaces&&a&&b&&this.na[a])return this.na[a][b]}; function kq(a){if("iframe"!==a.tagName.toLowerCase()){var b=Pp(a,"videoid");b&&(b={videoId:b,width:Pp(a,"width"),height:Pp(a,"height")},new eq(a,b))}} ;B("YT.PlayerState.UNSTARTED",-1);B("YT.PlayerState.ENDED",0);B("YT.PlayerState.PLAYING",1);B("YT.PlayerState.PAUSED",2);B("YT.PlayerState.BUFFERING",3);B("YT.PlayerState.CUED",5);B("YT.get",function(a){return Lp[a]}); B("YT.scan",Op);B("YT.subscribe",function(a,b,c){rg.subscribe(a,b,c);Np[a]=!0;for(var d in Lp)Lp.hasOwnProperty(d)&&Zp(Lp[d],a)}); B("YT.unsubscribe",function(a,b,c){qg(a,b,c)}); B("YT.Player",eq);Wp.prototype.destroy=Wp.prototype.destroy;Wp.prototype.setSize=Wp.prototype.setSize;Wp.prototype.getIframe=Wp.prototype.getIframe;Wp.prototype.addEventListener=Wp.prototype.addEventListener;eq.prototype.getVideoEmbedCode=eq.prototype.getVideoEmbedCode;eq.prototype.getOptions=eq.prototype.getOptions;eq.prototype.getOption=eq.prototype.getOption; Mp.push(function(a){var b=a;b||(b=document);a=jb(b.getElementsByTagName("yt:player"));var c=b||document;if(c.querySelectorAll&&c.querySelector)b=c.querySelectorAll(".yt-player");else{var d;c=document;b=b||c;if(b.querySelectorAll&&b.querySelector)b=b.querySelectorAll(".yt-player");else if(b.getElementsByClassName){var e=b.getElementsByClassName("yt-player");b=e}else{e=b.getElementsByTagName("*");var f={};for(c=d=0;b=e[c];c++){var g=b.className,h;if(h="function"==typeof g.split)h=0<=eb(g.split(/\s+/), "yt-player");h&&(f[d++]=b)}f.length=d;b=f}}b=jb(b);E(ib(a,b),kq)}); "undefined"!=typeof YTConfig&&YTConfig.parsetags&&"onload"!=YTConfig.parsetags||Op();var lq=z.onYTReady;lq&&lq();var mq=z.onYouTubeIframeAPIReady;mq&&mq();var nq=z.onYouTubePlayerAPIReady;nq&&nq();}).call(this);